/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.demo.scheduler.service.step.processor.stub;

import info.peigen.hotpot.demo.scheduler.service.step.base.AbstractStepProcessor;
import info.peigen.hotpot.demo.scheduler.service.step.base.TaskContext;
import lombok.extern.slf4j.Slf4j;
import org.noear.solon.annotation.Component;

/**
 * <b>(RobotMoveExecuteor)</b>
 *
 * @author Lihai
 * @version 1.0.0
 * @since 2023/9/9
 */
@Slf4j
@Component
public class StubArmLeftProcessor extends AbstractStepProcessor {
    @Override
    public void execute(TaskContext context) {
        context.getTask().getSendRequestNo().add(context.getTask().getTaskId() + "-armLeft");
        log.info("调用：【stubCommandService.armLeft({})】", context.getTask().getTrade().getStub().getStubId());
    }

    @Override
    public void callback(TaskContext taskContext) {
        log.info("{},{}", taskContext.getCallBackResult().getReferMachineId(), taskContext.getCallBackResult().getMessage());
    }
}
